package com.fauks.se.other;

public class InegerTest {
    public static void main(String[] args) {
        Integer a = 100000;
        Integer b = 100000;

        //返回false
        System.out.println(a == b);

        Integer c = 100;
        Integer d = 100;
        //返回true,由于Integer会对常用int-127~128做缓存，如果在此返回直接获取缓存如果不在创建新的Integer
        System.out.println(c == d);

        Integer integer = Integer.valueOf("12");
        System.out.println(integer);
    }
}
